import { createEntryStore } from 'entry-store'
import { BaseStorage, getLsKey } from './base'
import { Region } from '@/apis/endpoint/model'

const KEY = getLsKey("history-city")
export const historyCity = createEntryStore<Region>(KEY, (a, b) => a.id === b.id, {
  debug: process.env.NODE_ENV !== "production",
  storage: BaseStorage
})
